import request from "./request";



export function getPolicy(){
    return request.get("/distribute/money-level/list")
}
export function updateById(data){
    return request.put(`/distribute/money-level/${data.id}`,{
        commissionRate: data.commissionRate
    })
}



export function getCommissionList(params){
    return request.get(`/distribute/commission/list`,params)
}

export function transfer(data){
    return request.post(`/distribute/order/transfer`,data)
}
// 请求获取微信客户端基本配置
export function getConfig(data){
    return request.post(`/distribute/config`,data)
}
export function getWithdrawal(){
    return request.get(`/distribute/commission/amount`)
}
export function getWithdrawalRecords(params){
    return request.get(`/distribute/withdrawals/list`,params)
}
